﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanyUserList.aspx.cs" Inherits="WebSite.admin.company.CompanyUserList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head2" runat="server">
    <title>福利点点通 </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
    <script src="../js/common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form2" runat="server">
       <ext:PageManager ID="PageManager1" runat="server" />

           <ext:Button ID="btnAddUser" runat="server" EnablePostBack="false" Text="添加商家用户"> </ext:Button>

         <ext:Grid ID="Grid1" Title="查询结果" PageSize="50" ShowBorder="false"  CssClass="x-form-item"  Height="494px"  AllowPaging="true" SortColumn="AdminUser" SortDirection="ASC"     
                        OnPageIndexChange="Grid1_PageIndexChange" ShowHeader="False" runat="server" EnableCheckBoxSelect="false"   AllowSorting="true"    IsDatabasePaging="false" 
                        DataKeyNames="AdminUser" OnSort="Grid1_Sort" EnableRowNumber="True">
        <Columns>    
            <ext:BoundField Width="100px" ColumnID="AdminUser" SortField="AdminUser" DataField="AdminUser" DataFormatString="{0}"
                HeaderText="登录名称" />
             <ext:BoundField Width="100px" ColumnID="AdminName" SortField="AdminName" DataField="AdminName" DataFormatString="{0}"
                HeaderText="用户名称" />
           <ext:BoundField Width="100px" ColumnID="AdminType" SortField="AdminType" DataField="AdminType" DataFormatString="{0}"
                HeaderText="用户类型" />
           <ext:BoundField Width="100px" ColumnID="LoginDegree" SortField="LoginDegree" DataField="LoginDegree" DataFormatString="{0}"
                HeaderText="登录次数" />
          <ext:BoundField Width="100px" ColumnID="Logintime" SortField="Logintime" DataField="Logintime" DataFormatString="{0}"
                HeaderText="最后登录时间" />
           <ext:BoundField Width="100px" ColumnID="LoginIP" SortField="LoginIP" DataField="LoginIP" DataFormatString="{0}"
                HeaderText="最后登录IP" />
      
          <ext:TemplateField Width="120px" SortField="cardcode" HeaderText="操作">
                <ItemTemplate> 
                
                  <a href="#" onclick="X('Window2').box_show('/admin/company/addCompanyUser.aspx?id=<%= CompanyId %>&uid=<%# Eval("Adminid") %>', '编辑商家用户-<%# Eval("AdminUser")%>');" title="编辑">[编辑]</a>
                  <a title="移除" href="CompanyUserList.aspx?id=<%= CompanyId %>&uid=<%# Eval("Adminid") %>&action=del" onclick="javascript:return confirm('你确定要删除这个管理员吗?');">[删除]</a>
                  <a href="#" onclick="X('Window2').box_show('<%# Eval("AdminTypeId").ToString() == "1" ? "/admin/company/salesmanRelation.aspx?uid=" + Eval("Adminid")+"&cid="+CompanyId : "/admin/company/companyRule.aspx?uid=" + Eval("Adminid") %>', '商家用户权限-<%# Eval("AdminUser")%>');" title="权限">[权限]</a>
         
                </ItemTemplate>
            </ext:TemplateField>
        </Columns>
    </ext:Grid>

       <ext:Window ID="Window2" IconUrl="~/admin/images/16/11.png" runat="server" Popup="false"
        IsModal="true" Target="Parent" OnClose="Window2_Close" Title="Popup Window 2"
        EnableConfirmOnClose="true" CloseAction="HidePostBack" EnableIFrame="true" IFrameUrl="about:blank"
        Height="360px" Width="500px">
    </ext:Window>

    </form>
</body>
</html>


